package com.san.hkhospital.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.san.hkhospital.mapper.PatientMapper;
import java.util.List;
import com.san.hkhospital.entity.PatientExample;
import com.san.hkhospital.entity.Patient;
import com.san.hkhospital.service.PatientService;
/**
 * ClassName:PatientServiceImpl
 * PackageName:com.san.hkhospital.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 * 
 */
 
 
@Service
public class PatientServiceImpl implements PatientService{

    @Resource
    private PatientMapper patientMapper;

    @Override
    public long countByExample(PatientExample example) {
        return patientMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(PatientExample example) {
        return patientMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer patientId) {
        return patientMapper.deleteByPrimaryKey(patientId);
    }

    @Override
    public int insert(Patient record) {
        return patientMapper.insert(record);
    }

    @Override
    public int insertSelective(Patient record) {
        return patientMapper.insertSelective(record);
    }

    @Override
    public List<Patient> selectByExample(PatientExample example) {
        return patientMapper.selectByExample(example);
    }

    @Override
    public Patient selectByPrimaryKey(Integer patientId) {
        return patientMapper.selectByPrimaryKey(patientId);
    }

    @Override
    public int updateByExampleSelective(Patient record,PatientExample example) {
        return patientMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Patient record,PatientExample example) {
        return patientMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Patient record) {
        return patientMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Patient record) {
        return patientMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Patient> selectList() {
        return patientMapper.selectByExample(null);
    }

}
